var classnames = require('classnames');
var SelectDropDown = require('../../../src/libs/select-drop-down');
var cityData = [
        {
            "id": 1,
            "cityID": "5132",
            "city": "阿坝藏族羌族自治州",
            "father": "51"
        },
        {
            "id": 2,
            "cityID": "5133",
            "city": "甘孜藏族自治州",
            "father": "51"
        },
        {
            "id": 3,
            "cityID": "5134",
            "city": "凉山彝族自治州",
            "father": "51"
        },
        {
            "id": 4,
            "cityID": "5201",
            "city": "贵阳市",
            "father": "52"
        },
        {
            "id": 5,
            "cityID": "5202",
            "city": "六盘水市",
            "father": "52"
        },
        {
            "id": 6,
            "cityID": "5203",
            "city": "遵义市",
            "father": "52"
        },
        {
            "id": 7,
            "cityID": "5204",
            "city": "安顺市",
            "father": "52"
        },
        {
            "id": 8,
            "cityID": "5222",
            "city": "铜仁地区",
            "father": "52"
        },
        {
            "id": 9,
            "cityID": "5223",
            "city": "黔西南布依族苗族自治州",
            "father": "52"
        },
        {
            "id": 10,
            "cityID": "5224",
            "city": "毕节地区",
            "father": "52"
        },
        {
            "id": 11,
            "cityID": "5226",
            "city": "黔东南苗族侗族自治州",
            "father": "52"
        },
        {
            "id": 12,
            "cityID": "5227",
            "city": "黔南布依族苗族自治州",
            "father": "52"
        },
        {
            "id": 13,
            "cityID": "5301",
            "city": "昆明市",
            "father": "53"
        },
        {
            "id": 14,
            "cityID": "5303",
            "city": "曲靖市",
            "father": "53"
        },
        {
            "id": 15,
            "cityID": "5304",
            "city": "玉溪市",
            "father": "53"
        },
        {
            "id": 16,
            "cityID": "5305",
            "city": "保山市",
            "father": "53"
        },
        {
            "id": 17,
            "cityID": "5306",
            "city": "昭通市",
            "father": "53"
        },
        {
            "id": 18,
            "cityID": "5307",
            "city": "丽江市",
            "father": "53"
        },
        {
            "id": 19,
            "cityID": "5308",
            "city": "思茅市",
            "father": "53"
        },
        {
            "id": 20,
            "cityID": "5309",
            "city": "临沧市",
            "father": "53"
        },
        {
            "id": 21,
            "cityID": "5323",
            "city": "楚雄彝族自治州",
            "father": "53"
        },
        {
            "id": 22,
            "cityID": "5325",
            "city": "红河哈尼族彝族自治州",
            "father": "53"
        },
        {
            "id": 23,
            "cityID": "5326",
            "city": "文山壮族苗族自治州",
            "father": "53"
        },
        {
            "id": 24,
            "cityID": "5328",
            "city": "西双版纳傣族自治州",
            "father": "53"
        },
        {
            "id": 25,
            "cityID": "5329",
            "city": "大理白族自治州",
            "father": "53"
        },
        {
            "id": 26,
            "cityID": "5331",
            "city": "德宏傣族景颇族自治州",
            "father": "53"
        },
        {
            "id": 27,
            "cityID": "5333",
            "city": "怒江傈僳族自治州",
            "father": "53"
        },
        {
            "id": 28,
            "cityID": "5334",
            "city": "迪庆藏族自治州",
            "father": "53"
        },
        {
            "id": 29,
            "cityID": "5401",
            "city": "拉萨市",
            "father": "54"
        },
        {
            "id": 30,
            "cityID": "5421",
            "city": "昌都地区",
            "father": "54"
        },
        {
            "id": 31,
            "cityID": "5422",
            "city": "山南地区",
            "father": "54"
        },
        {
            "id": 32,
            "cityID": "5423",
            "city": "日喀则地区",
            "father": "54"
        },
        {
            "id": 33,
            "cityID": "5424",
            "city": "那曲地区",
            "father": "54"
        },
        {
            "id": 34,
            "cityID": "5425",
            "city": "阿里地区",
            "father": "54"
        },
        {
            "id": 35,
            "cityID": "5426",
            "city": "林芝地区",
            "father": "54"
        },
        {
            "id": 36,
            "cityID": "6101",
            "city": "西安市",
            "father": "61"
        },
        {
            "id": 37,
            "cityID": "6102",
            "city": "铜川市",
            "father": "61"
        },
        {
            "id": 38,
            "cityID": "6103",
            "city": "宝鸡市",
            "father": "61"
        },
        {
            "id": 39,
            "cityID": "6104",
            "city": "咸阳市",
            "father": "61"
        },
        {
            "id": 40,
            "cityID": "6105",
            "city": "渭南市",
            "father": "61"
        },
        {
            "id": 41,
            "cityID": "6106",
            "city": "延安市",
            "father": "61"
        },
        {
            "id": 42,
            "cityID": "6107",
            "city": "汉中市",
            "father": "61"
        },
        {
            "id": 43,
            "cityID": "6108",
            "city": "榆林市",
            "father": "61"
        },
        {
            "id": 44,
            "cityID": "6109",
            "city": "安康市",
            "father": "61"
        },
        {
            "id": 45,
            "cityID": "6110",
            "city": "商洛市",
            "father": "61"
        },
        {
            "id": 46,
            "cityID": "6201",
            "city": "兰州市",
            "father": "62"
        },
        {
            "id": 47,
            "cityID": "6202",
            "city": "嘉峪关市",
            "father": "62"
        },
        {
            "id": 48,
            "cityID": "6203",
            "city": "金昌市",
            "father": "62"
        },
        {
            "id": 49,
            "cityID": "6204",
            "city": "白银市",
            "father": "62"
        },
        {
            "id": 50,
            "cityID": "6205",
            "city": "天水市",
            "father": "62"
        },
        {
            "id": 51,
            "cityID": "6206",
            "city": "武威市",
            "father": "62"
        },
        {
            "id": 52,
            "cityID": "6207",
            "city": "张掖市",
            "father": "62"
        },
        {
            "id": 53,
            "cityID": "6208",
            "city": "平凉市",
            "father": "62"
        },
        {
            "id": 54,
            "cityID": "6209",
            "city": "酒泉市",
            "father": "62"
        },
        {
            "id": 55,
            "cityID": "6210",
            "city": "庆阳市",
            "father": "62"
        },
        {
            "id": 56,
            "cityID": "6211",
            "city": "定西市",
            "father": "62"
        },
        {
            "id": 57,
            "cityID": "6212",
            "city": "陇南市",
            "father": "62"
        },
        {
            "id": 58,
            "cityID": "6229",
            "city": "临夏回族自治州",
            "father": "62"
        },
        {
            "id": 59,
            "cityID": "6230",
            "city": "甘南藏族自治州",
            "father": "62"
        },
        {
            "id": 60,
            "cityID": "6301",
            "city": "西宁市",
            "father": "63"
        },
        {
            "id": 61,
            "cityID": "6321",
            "city": "海东地区",
            "father": "63"
        },
        {
            "id": 62,
            "cityID": "6322",
            "city": "海北藏族自治州",
            "father": "63"
        },
        {
            "id": 63,
            "cityID": "6323",
            "city": "黄南藏族自治州",
            "father": "63"
        },
        {
            "id": 64,
            "cityID": "6325",
            "city": "海南藏族自治州",
            "father": "63"
        },
        {
            "id": 65,
            "cityID": "6326",
            "city": "果洛藏族自治州",
            "father": "63"
        },
        {
            "id": 66,
            "cityID": "6327",
            "city": "玉树藏族自治州",
            "father": "63"
        },
        {
            "id": 67,
            "cityID": "6328",
            "city": "海西蒙古族藏族自治州",
            "father": "63"
        },
        {
            "id": 68,
            "cityID": "6401",
            "city": "银川市",
            "father": "64"
        },
        {
            "id": 69,
            "cityID": "6402",
            "city": "石嘴山市",
            "father": "64"
        },
        {
            "id": 70,
            "cityID": "6403",
            "city": "吴忠市",
            "father": "64"
        },
        {
            "id": 71,
            "cityID": "6404",
            "city": "固原市",
            "father": "64"
        },
        {
            "id": 72,
            "cityID": "6405",
            "city": "中卫市",
            "father": "64"
        },
        {
            "id": 73,
            "cityID": "6501",
            "city": "乌鲁木齐市",
            "father": "65"
        },
        {
            "id": 74,
            "cityID": "6502",
            "city": "克拉玛依市",
            "father": "65"
        },
        {
            "id": 75,
            "cityID": "6521",
            "city": "吐鲁番地区",
            "father": "65"
        },
        {
            "id": 76,
            "cityID": "6522",
            "city": "哈密地区",
            "father": "65"
        },
        {
            "id": 77,
            "cityID": "6523",
            "city": "昌吉回族自治州",
            "father": "65"
        },
        {
            "id": 78,
            "cityID": "6527",
            "city": "博尔塔拉蒙古自治州",
            "father": "65"
        },
        {
            "id": 79,
            "cityID": "6528",
            "city": "巴音郭楞蒙古自治州",
            "father": "65"
        },
        {
            "id": 80,
            "cityID": "6529",
            "city": "阿克苏地区",
            "father": "65"
        },
        {
            "id": 81,
            "cityID": "6530",
            "city": "克孜勒苏柯尔克孜自治州",
            "father": "65"
        },
        {
            "id": 82,
            "cityID": "6531",
            "city": "喀什地区",
            "father": "65"
        },
        {
            "id": 83,
            "cityID": "6532",
            "city": "和田地区",
            "father": "65"
        },
        {
            "id": 84,
            "cityID": "6540",
            "city": "伊犁哈萨克自治州",
            "father": "65"
        },
        {
            "id": 85,
            "cityID": "6542",
            "city": "塔城地区",
            "father": "65"
        },
        {
            "id": 86,
            "cityID": "6543",
            "city": "阿勒泰地区",
            "father": "65"
        },
        {
            "id": 87,
            "cityID": "6590",
            "city": "省直辖行政单位",
            "father": "65"
        },
        {
            "id": 88,
            "cityID": "7100",
            "city": "台湾省",
            "father": "71"
        },
        {
            "id": 89,
            "cityID": "8100",
            "city": "香港特别行政区",
            "father": "81"
        },
        {
            "id": 90,
            "cityID": "8200",
            "city": "澳门特别行政区",
            "father": "82"
        },
        {
            "id": 91,
            "cityID": "1301",
            "city": "石家庄市",
            "father": "13"
        },
        {
            "id": 92,
            "cityID": "1302",
            "city": "唐山市",
            "father": "13"
        },
        {
            "id": 93,
            "cityID": "1303",
            "city": "秦皇岛市",
            "father": "13"
        },
        {
            "id": 94,
            "cityID": "1304",
            "city": "邯郸市",
            "father": "13"
        },
        {
            "id": 95,
            "cityID": "1305",
            "city": "邢台市",
            "father": "13"
        },
        {
            "id": 96,
            "cityID": "1306",
            "city": "保定市",
            "father": "13"
        },
        {
            "id": 97,
            "cityID": "1307",
            "city": "张家口市",
            "father": "13"
        },
        {
            "id": 98,
            "cityID": "1308",
            "city": "承德市",
            "father": "13"
        },
        {
            "id": 99,
            "cityID": "1309",
            "city": "沧州市",
            "father": "13"
        },
        {
            "id": 100,
            "cityID": "1310",
            "city": "廊坊市",
            "father": "13"
        },
        {
            "id": 101,
            "cityID": "1311",
            "city": "衡水市",
            "father": "13"
        },
        {
            "id": 102,
            "cityID": "1401",
            "city": "太原市",
            "father": "14"
        },
        {
            "id": 103,
            "cityID": "1402",
            "city": "大同市",
            "father": "14"
        },
        {
            "id": 104,
            "cityID": "1403",
            "city": "阳泉市",
            "father": "14"
        },
        {
            "id": 105,
            "cityID": "1404",
            "city": "长治市",
            "father": "14"
        },
        {
            "id": 106,
            "cityID": "1405",
            "city": "晋城市",
            "father": "14"
        },
        {
            "id": 107,
            "cityID": "1406",
            "city": "朔州市",
            "father": "14"
        },
        {
            "id": 108,
            "cityID": "1407",
            "city": "晋中市",
            "father": "14"
        },
        {
            "id": 109,
            "cityID": "1408",
            "city": "运城市",
            "father": "14"
        },
        {
            "id": 110,
            "cityID": "1409",
            "city": "忻州市",
            "father": "14"
        },
        {
            "id": 111,
            "cityID": "1410",
            "city": "临汾市",
            "father": "14"
        },
        {
            "id": 112,
            "cityID": "1411",
            "city": "吕梁市",
            "father": "14"
        },
        {
            "id": 113,
            "cityID": "1501",
            "city": "呼和浩特市",
            "father": "15"
        },
        {
            "id": 114,
            "cityID": "1502",
            "city": "包头市",
            "father": "15"
        },
        {
            "id": 115,
            "cityID": "1503",
            "city": "乌海市",
            "father": "15"
        },
        {
            "id": 116,
            "cityID": "1504",
            "city": "赤峰市",
            "father": "15"
        },
        {
            "id": 117,
            "cityID": "1505",
            "city": "通辽市",
            "father": "15"
        },
        {
            "id": 118,
            "cityID": "1506",
            "city": "鄂尔多斯市",
            "father": "15"
        },
        {
            "id": 119,
            "cityID": "1507",
            "city": "呼伦贝尔市",
            "father": "15"
        },
        {
            "id": 120,
            "cityID": "1508",
            "city": "巴彦淖尔市",
            "father": "15"
        },
        {
            "id": 121,
            "cityID": "1509",
            "city": "乌兰察布市",
            "father": "15"
        },
        {
            "id": 122,
            "cityID": "1522",
            "city": "兴安盟",
            "father": "15"
        },
        {
            "id": 123,
            "cityID": "1525",
            "city": "锡林郭勒盟",
            "father": "15"
        },
        {
            "id": 124,
            "cityID": "1529",
            "city": "阿拉善盟",
            "father": "15"
        },
        {
            "id": 125,
            "cityID": "2101",
            "city": "沈阳市",
            "father": "21"
        },
        {
            "id": 126,
            "cityID": "2102",
            "city": "大连市",
            "father": "21"
        },
        {
            "id": 127,
            "cityID": "2103",
            "city": "鞍山市",
            "father": "21"
        },
        {
            "id": 128,
            "cityID": "2104",
            "city": "抚顺市",
            "father": "21"
        },
        {
            "id": 129,
            "cityID": "2105",
            "city": "本溪市",
            "father": "21"
        },
        {
            "id": 130,
            "cityID": "2106",
            "city": "丹东市",
            "father": "21"
        },
        {
            "id": 131,
            "cityID": "2107",
            "city": "锦州市",
            "father": "21"
        },
        {
            "id": 132,
            "cityID": "2108",
            "city": "营口市",
            "father": "21"
        },
        {
            "id": 133,
            "cityID": "2109",
            "city": "阜新市",
            "father": "21"
        },
        {
            "id": 134,
            "cityID": "2110",
            "city": "辽阳市",
            "father": "21"
        },
        {
            "id": 135,
            "cityID": "2111",
            "city": "盘锦市",
            "father": "21"
        },
        {
            "id": 136,
            "cityID": "2112",
            "city": "铁岭市",
            "father": "21"
        },
        {
            "id": 137,
            "cityID": "2113",
            "city": "朝阳市",
            "father": "21"
        },
        {
            "id": 138,
            "cityID": "2114",
            "city": "葫芦岛市",
            "father": "21"
        },
        {
            "id": 139,
            "cityID": "2201",
            "city": "长春市",
            "father": "22"
        },
        {
            "id": 140,
            "cityID": "2202",
            "city": "吉林市",
            "father": "22"
        },
        {
            "id": 141,
            "cityID": "2203",
            "city": "四平市",
            "father": "22"
        },
        {
            "id": 142,
            "cityID": "2204",
            "city": "辽源市",
            "father": "22"
        },
        {
            "id": 143,
            "cityID": "2205",
            "city": "通化市",
            "father": "22"
        },
        {
            "id": 144,
            "cityID": "2206",
            "city": "白山市",
            "father": "22"
        },
        {
            "id": 145,
            "cityID": "2207",
            "city": "松原市",
            "father": "22"
        },
        {
            "id": 146,
            "cityID": "2208",
            "city": "白城市",
            "father": "22"
        },
        {
            "id": 147,
            "cityID": "2224",
            "city": "延边朝鲜族自治州",
            "father": "22"
        },
        {
            "id": 148,
            "cityID": "2301",
            "city": "哈尔滨市",
            "father": "23"
        },
        {
            "id": 149,
            "cityID": "2302",
            "city": "齐齐哈尔市",
            "father": "23"
        },
        {
            "id": 150,
            "cityID": "2303",
            "city": "鸡西市",
            "father": "23"
        },
        {
            "id": 151,
            "cityID": "2304",
            "city": "鹤岗市",
            "father": "23"
        },
        {
            "id": 152,
            "cityID": "2305",
            "city": "双鸭山市",
            "father": "23"
        },
        {
            "id": 153,
            "cityID": "2306",
            "city": "大庆市",
            "father": "23"
        },
        {
            "id": 154,
            "cityID": "2307",
            "city": "伊春市",
            "father": "23"
        },
        {
            "id": 155,
            "cityID": "2308",
            "city": "佳木斯市",
            "father": "23"
        },
        {
            "id": 156,
            "cityID": "2309",
            "city": "七台河市",
            "father": "23"
        },
        {
            "id": 157,
            "cityID": "2310",
            "city": "牡丹江市",
            "father": "23"
        },
        {
            "id": 158,
            "cityID": "2311",
            "city": "黑河市",
            "father": "23"
        },
        {
            "id": 159,
            "cityID": "2312",
            "city": "绥化市",
            "father": "23"
        },
        {
            "id": 160,
            "cityID": "2327",
            "city": "大兴安岭地区",
            "father": "23"
        },
        {
            "id": 161,
            "cityID": "3100",
            "city": "上海市",
            "father": "31"
        },
        {
            "id": 162,
            "cityID": "3201",
            "city": "南京市",
            "father": "32"
        },
        {
            "id": 163,
            "cityID": "3202",
            "city": "无锡市",
            "father": "32"
        },
        {
            "id": 164,
            "cityID": "3203",
            "city": "徐州市",
            "father": "32"
        },
        {
            "id": 165,
            "cityID": "3204",
            "city": "常州市",
            "father": "32"
        },
        {
            "id": 166,
            "cityID": "3205",
            "city": "苏州市",
            "father": "32"
        },
        {
            "id": 167,
            "cityID": "3206",
            "city": "南通市",
            "father": "32"
        },
        {
            "id": 168,
            "cityID": "3207",
            "city": "连云港市",
            "father": "32"
        },
        {
            "id": 169,
            "cityID": "3208",
            "city": "淮安市",
            "father": "32"
        },
        {
            "id": 170,
            "cityID": "3209",
            "city": "盐城市",
            "father": "32"
        },
        {
            "id": 171,
            "cityID": "3210",
            "city": "扬州市",
            "father": "32"
        },
        {
            "id": 172,
            "cityID": "3211",
            "city": "镇江市",
            "father": "32"
        },
        {
            "id": 173,
            "cityID": "3212",
            "city": "泰州市",
            "father": "32"
        },
        {
            "id": 174,
            "cityID": "3213",
            "city": "宿迁市",
            "father": "32"
        },
        {
            "id": 175,
            "cityID": "3301",
            "city": "杭州市",
            "father": "33"
        },
        {
            "id": 176,
            "cityID": "3302",
            "city": "宁波市",
            "father": "33"
        },
        {
            "id": 177,
            "cityID": "3303",
            "city": "温州市",
            "father": "33"
        },
        {
            "id": 178,
            "cityID": "3304",
            "city": "嘉兴市",
            "father": "33"
        },
        {
            "id": 179,
            "cityID": "3305",
            "city": "湖州市",
            "father": "33"
        },
        {
            "id": 180,
            "cityID": "3306",
            "city": "绍兴市",
            "father": "33"
        },
        {
            "id": 181,
            "cityID": "3307",
            "city": "金华市",
            "father": "33"
        },
        {
            "id": 182,
            "cityID": "3308",
            "city": "衢州市",
            "father": "33"
        },
        {
            "id": 183,
            "cityID": "3309",
            "city": "舟山市",
            "father": "33"
        },
        {
            "id": 184,
            "cityID": "3310",
            "city": "台州市",
            "father": "33"
        },
        {
            "id": 185,
            "cityID": "3311",
            "city": "丽水市",
            "father": "33"
        },
        {
            "id": 186,
            "cityID": "3401",
            "city": "合肥市",
            "father": "34"
        },
        {
            "id": 187,
            "cityID": "3402",
            "city": "芜湖市",
            "father": "34"
        },
        {
            "id": 188,
            "cityID": "3403",
            "city": "蚌埠市",
            "father": "34"
        },
        {
            "id": 189,
            "cityID": "3404",
            "city": "淮南市",
            "father": "34"
        },
        {
            "id": 190,
            "cityID": "3405",
            "city": "马鞍山市",
            "father": "34"
        },
        {
            "id": 191,
            "cityID": "3406",
            "city": "淮北市",
            "father": "34"
        },
        {
            "id": 192,
            "cityID": "1100",
            "city": "北京市",
            "father": "11"
        },
        {
            "id": 193,
            "cityID": "1200",
            "city": "天津市",
            "father": "12"
        },
        {
            "id": 194,
            "cityID": "3407",
            "city": "铜陵市",
            "father": "34"
        },
        {
            "id": 195,
            "cityID": "3408",
            "city": "安庆市",
            "father": "34"
        },
        {
            "id": 196,
            "cityID": "3410",
            "city": "黄山市",
            "father": "34"
        },
        {
            "id": 197,
            "cityID": "3411",
            "city": "滁州市",
            "father": "34"
        },
        {
            "id": 198,
            "cityID": "3412",
            "city": "阜阳市",
            "father": "34"
        },
        {
            "id": 199,
            "cityID": "3413",
            "city": "宿州市",
            "father": "34"
        },
        {
            "id": 200,
            "cityID": "3414",
            "city": "巢湖市",
            "father": "34"
        },
        {
            "id": 201,
            "cityID": "3415",
            "city": "六安市",
            "father": "34"
        },
        {
            "id": 202,
            "cityID": "3416",
            "city": "亳州市",
            "father": "34"
        },
        {
            "id": 203,
            "cityID": "3417",
            "city": "池州市",
            "father": "34"
        },
        {
            "id": 204,
            "cityID": "3418",
            "city": "宣城市",
            "father": "34"
        },
        {
            "id": 205,
            "cityID": "3501",
            "city": "福州市",
            "father": "35"
        },
        {
            "id": 206,
            "cityID": "3502",
            "city": "厦门市",
            "father": "35"
        },
        {
            "id": 207,
            "cityID": "3503",
            "city": "莆田市",
            "father": "35"
        },
        {
            "id": 208,
            "cityID": "3504",
            "city": "三明市",
            "father": "35"
        },
        {
            "id": 209,
            "cityID": "3505",
            "city": "泉州市",
            "father": "35"
        },
        {
            "id": 210,
            "cityID": "3506",
            "city": "漳州市",
            "father": "35"
        },
        {
            "id": 211,
            "cityID": "3507",
            "city": "南平市",
            "father": "35"
        },
        {
            "id": 212,
            "cityID": "3508",
            "city": "龙岩市",
            "father": "35"
        },
        {
            "id": 213,
            "cityID": "3509",
            "city": "宁德市",
            "father": "35"
        },
        {
            "id": 214,
            "cityID": "3601",
            "city": "南昌市",
            "father": "36"
        },
        {
            "id": 215,
            "cityID": "3602",
            "city": "景德镇市",
            "father": "36"
        },
        {
            "id": 216,
            "cityID": "3603",
            "city": "萍乡市",
            "father": "36"
        },
        {
            "id": 217,
            "cityID": "3604",
            "city": "九江市",
            "father": "36"
        },
        {
            "id": 218,
            "cityID": "3605",
            "city": "新余市",
            "father": "36"
        },
        {
            "id": 219,
            "cityID": "3606",
            "city": "鹰潭市",
            "father": "36"
        },
        {
            "id": 220,
            "cityID": "3607",
            "city": "赣州市",
            "father": "36"
        },
        {
            "id": 221,
            "cityID": "3608",
            "city": "吉安市",
            "father": "36"
        },
        {
            "id": 222,
            "cityID": "3609",
            "city": "宜春市",
            "father": "36"
        },
        {
            "id": 223,
            "cityID": "3610",
            "city": "抚州市",
            "father": "36"
        },
        {
            "id": 224,
            "cityID": "3611",
            "city": "上饶市",
            "father": "36"
        },
        {
            "id": 225,
            "cityID": "3701",
            "city": "济南市",
            "father": "37"
        },
        {
            "id": 226,
            "cityID": "3702",
            "city": "青岛市",
            "father": "37"
        },
        {
            "id": 227,
            "cityID": "3703",
            "city": "淄博市",
            "father": "37"
        },
        {
            "id": 228,
            "cityID": "3704",
            "city": "枣庄市",
            "father": "37"
        },
        {
            "id": 229,
            "cityID": "3705",
            "city": "东营市",
            "father": "37"
        },
        {
            "id": 230,
            "cityID": "3706",
            "city": "烟台市",
            "father": "37"
        },
        {
            "id": 231,
            "cityID": "3707",
            "city": "潍坊市",
            "father": "37"
        },
        {
            "id": 232,
            "cityID": "3708",
            "city": "济宁市",
            "father": "37"
        },
        {
            "id": 233,
            "cityID": "3709",
            "city": "泰安市",
            "father": "37"
        },
        {
            "id": 234,
            "cityID": "3710",
            "city": "威海市",
            "father": "37"
        },
        {
            "id": 235,
            "cityID": "3711",
            "city": "日照市",
            "father": "37"
        },
        {
            "id": 236,
            "cityID": "3712",
            "city": "莱芜市",
            "father": "37"
        },
        {
            "id": 237,
            "cityID": "3713",
            "city": "临沂市",
            "father": "37"
        },
        {
            "id": 238,
            "cityID": "3714",
            "city": "德州市",
            "father": "37"
        },
        {
            "id": 239,
            "cityID": "3715",
            "city": "聊城市",
            "father": "37"
        },
        {
            "id": 240,
            "cityID": "3716",
            "city": "滨州市",
            "father": "37"
        },
        {
            "id": 241,
            "cityID": "3717",
            "city": "荷泽市",
            "father": "37"
        },
        {
            "id": 242,
            "cityID": "4101",
            "city": "郑州市",
            "father": "41"
        },
        {
            "id": 243,
            "cityID": "4102",
            "city": "开封市",
            "father": "41"
        },
        {
            "id": 244,
            "cityID": "4103",
            "city": "洛阳市",
            "father": "41"
        },
        {
            "id": 245,
            "cityID": "4104",
            "city": "平顶山市",
            "father": "41"
        },
        {
            "id": 246,
            "cityID": "4105",
            "city": "安阳市",
            "father": "41"
        },
        {
            "id": 247,
            "cityID": "4106",
            "city": "鹤壁市",
            "father": "41"
        },
        {
            "id": 248,
            "cityID": "4107",
            "city": "新乡市",
            "father": "41"
        },
        {
            "id": 249,
            "cityID": "4108",
            "city": "焦作市",
            "father": "41"
        },
        {
            "id": 250,
            "cityID": "4109",
            "city": "濮阳市",
            "father": "41"
        },
        {
            "id": 251,
            "cityID": "4110",
            "city": "许昌市",
            "father": "41"
        },
        {
            "id": 252,
            "cityID": "4111",
            "city": "漯河市",
            "father": "41"
        },
        {
            "id": 253,
            "cityID": "4112",
            "city": "三门峡市",
            "father": "41"
        },
        {
            "id": 254,
            "cityID": "4113",
            "city": "南阳市",
            "father": "41"
        },
        {
            "id": 255,
            "cityID": "4114",
            "city": "商丘市",
            "father": "41"
        },
        {
            "id": 256,
            "cityID": "4115",
            "city": "信阳市",
            "father": "41"
        },
        {
            "id": 257,
            "cityID": "4116",
            "city": "周口市",
            "father": "41"
        },
        {
            "id": 258,
            "cityID": "4117",
            "city": "驻马店市",
            "father": "41"
        },
        {
            "id": 259,
            "cityID": "4201",
            "city": "武汉市",
            "father": "42"
        },
        {
            "id": 260,
            "cityID": "4202",
            "city": "黄石市",
            "father": "42"
        },
        {
            "id": 261,
            "cityID": "4203",
            "city": "十堰市",
            "father": "42"
        },
        {
            "id": 262,
            "cityID": "4205",
            "city": "宜昌市",
            "father": "42"
        },
        {
            "id": 263,
            "cityID": "4206",
            "city": "襄樊市",
            "father": "42"
        },
        {
            "id": 264,
            "cityID": "4207",
            "city": "鄂州市",
            "father": "42"
        },
        {
            "id": 265,
            "cityID": "4208",
            "city": "荆门市",
            "father": "42"
        },
        {
            "id": 266,
            "cityID": "4209",
            "city": "孝感市",
            "father": "42"
        },
        {
            "id": 267,
            "cityID": "4210",
            "city": "荆州市",
            "father": "42"
        },
        {
            "id": 268,
            "cityID": "4211",
            "city": "黄冈市",
            "father": "42"
        },
        {
            "id": 269,
            "cityID": "4212",
            "city": "咸宁市",
            "father": "42"
        },
        {
            "id": 270,
            "cityID": "4213",
            "city": "随州市",
            "father": "42"
        },
        {
            "id": 271,
            "cityID": "4228",
            "city": "恩施土家族苗族自治州",
            "father": "42"
        },
        {
            "id": 272,
            "cityID": "4290",
            "city": "省直辖行政单位",
            "father": "42"
        },
        {
            "id": 273,
            "cityID": "4301",
            "city": "长沙市",
            "father": "43"
        },
        {
            "id": 274,
            "cityID": "4302",
            "city": "株洲市",
            "father": "43"
        },
        {
            "id": 275,
            "cityID": "4303",
            "city": "湘潭市",
            "father": "43"
        },
        {
            "id": 276,
            "cityID": "4304",
            "city": "衡阳市",
            "father": "43"
        },
        {
            "id": 277,
            "cityID": "4305",
            "city": "邵阳市",
            "father": "43"
        },
        {
            "id": 278,
            "cityID": "4306",
            "city": "岳阳市",
            "father": "43"
        },
        {
            "id": 279,
            "cityID": "4307",
            "city": "常德市",
            "father": "43"
        },
        {
            "id": 280,
            "cityID": "4308",
            "city": "张家界市",
            "father": "43"
        },
        {
            "id": 281,
            "cityID": "4309",
            "city": "益阳市",
            "father": "43"
        },
        {
            "id": 282,
            "cityID": "4310",
            "city": "郴州市",
            "father": "43"
        },
        {
            "id": 283,
            "cityID": "4311",
            "city": "永州市",
            "father": "43"
        },
        {
            "id": 284,
            "cityID": "4312",
            "city": "怀化市",
            "father": "43"
        },
        {
            "id": 285,
            "cityID": "4313",
            "city": "娄底市",
            "father": "43"
        },
        {
            "id": 286,
            "cityID": "4331",
            "city": "湘西土家族苗族自治州",
            "father": "43"
        },
        {
            "id": 287,
            "cityID": "4401",
            "city": "广州市",
            "father": "44"
        },
        {
            "id": 288,
            "cityID": "4402",
            "city": "韶关市",
            "father": "44"
        },
        {
            "id": 289,
            "cityID": "4403",
            "city": "深圳市",
            "father": "44"
        },
        {
            "id": 290,
            "cityID": "4404",
            "city": "珠海市",
            "father": "44"
        },
        {
            "id": 291,
            "cityID": "4405",
            "city": "汕头市",
            "father": "44"
        },
        {
            "id": 292,
            "cityID": "4406",
            "city": "佛山市",
            "father": "44"
        },
        {
            "id": 293,
            "cityID": "4407",
            "city": "江门市",
            "father": "44"
        },
        {
            "id": 294,
            "cityID": "4408",
            "city": "湛江市",
            "father": "44"
        },
        {
            "id": 295,
            "cityID": "4409",
            "city": "茂名市",
            "father": "44"
        },
        {
            "id": 296,
            "cityID": "4412",
            "city": "肇庆市",
            "father": "44"
        },
        {
            "id": 297,
            "cityID": "4413",
            "city": "惠州市",
            "father": "44"
        },
        {
            "id": 298,
            "cityID": "4414",
            "city": "梅州市",
            "father": "44"
        },
        {
            "id": 299,
            "cityID": "4415",
            "city": "汕尾市",
            "father": "44"
        },
        {
            "id": 300,
            "cityID": "4416",
            "city": "河源市",
            "father": "44"
        },
        {
            "id": 301,
            "cityID": "4417",
            "city": "阳江市",
            "father": "44"
        },
        {
            "id": 302,
            "cityID": "4418",
            "city": "清远市",
            "father": "44"
        },
        {
            "id": 303,
            "cityID": "4419",
            "city": "东莞市",
            "father": "44"
        },
        {
            "id": 304,
            "cityID": "4420",
            "city": "中山市",
            "father": "44"
        },
        {
            "id": 305,
            "cityID": "4451",
            "city": "潮州市",
            "father": "44"
        },
        {
            "id": 306,
            "cityID": "4452",
            "city": "揭阳市",
            "father": "44"
        },
        {
            "id": 307,
            "cityID": "4453",
            "city": "云浮市",
            "father": "44"
        },
        {
            "id": 308,
            "cityID": "4501",
            "city": "南宁市",
            "father": "45"
        },
        {
            "id": 309,
            "cityID": "4502",
            "city": "柳州市",
            "father": "45"
        },
        {
            "id": 310,
            "cityID": "4503",
            "city": "桂林市",
            "father": "45"
        },
        {
            "id": 311,
            "cityID": "4504",
            "city": "梧州市",
            "father": "45"
        },
        {
            "id": 312,
            "cityID": "4505",
            "city": "北海市",
            "father": "45"
        },
        {
            "id": 313,
            "cityID": "4506",
            "city": "防城港市",
            "father": "45"
        },
        {
            "id": 314,
            "cityID": "4507",
            "city": "钦州市",
            "father": "45"
        },
        {
            "id": 315,
            "cityID": "4508",
            "city": "贵港市",
            "father": "45"
        },
        {
            "id": 316,
            "cityID": "4509",
            "city": "玉林市",
            "father": "45"
        },
        {
            "id": 317,
            "cityID": "4510",
            "city": "百色市",
            "father": "45"
        },
        {
            "id": 318,
            "cityID": "4511",
            "city": "贺州市",
            "father": "45"
        },
        {
            "id": 319,
            "cityID": "4512",
            "city": "河池市",
            "father": "45"
        },
        {
            "id": 320,
            "cityID": "4513",
            "city": "来宾市",
            "father": "45"
        },
        {
            "id": 321,
            "cityID": "4514",
            "city": "崇左市",
            "father": "45"
        },
        {
            "id": 322,
            "cityID": "4601",
            "city": "海口市",
            "father": "46"
        },
        {
            "id": 323,
            "cityID": "4602",
            "city": "三亚市",
            "father": "46"
        },
        {
            "id": 324,
            "cityID": "4690",
            "city": "直辖县级行政单位",
            "father": "46"
        },
        {
            "id": 325,
            "cityID": "5000",
            "city": "重庆市",
            "father": "50"
        },
        {
            "id": 326,
            "cityID": "5101",
            "city": "成都市",
            "father": "51"
        },
        {
            "id": 327,
            "cityID": "5103",
            "city": "自贡市",
            "father": "51"
        },
        {
            "id": 328,
            "cityID": "5104",
            "city": "攀枝花市",
            "father": "51"
        },
        {
            "id": 329,
            "cityID": "5105",
            "city": "泸州市",
            "father": "51"
        },
        {
            "id": 330,
            "cityID": "5106",
            "city": "德阳市",
            "father": "51"
        },
        {
            "id": 331,
            "cityID": "5107",
            "city": "绵阳市",
            "father": "51"
        },
        {
            "id": 332,
            "cityID": "5108",
            "city": "广元市",
            "father": "51"
        },
        {
            "id": 333,
            "cityID": "5109",
            "city": "遂宁市",
            "father": "51"
        },
        {
            "id": 334,
            "cityID": "5110",
            "city": "内江市",
            "father": "51"
        },
        {
            "id": 335,
            "cityID": "5111",
            "city": "乐山市",
            "father": "51"
        },
        {
            "id": 336,
            "cityID": "5113",
            "city": "南充市",
            "father": "51"
        },
        {
            "id": 337,
            "cityID": "5114",
            "city": "眉山市",
            "father": "51"
        },
        {
            "id": 338,
            "cityID": "5115",
            "city": "宜宾市",
            "father": "51"
        },
        {
            "id": 339,
            "cityID": "5116",
            "city": "广安市",
            "father": "51"
        },
        {
            "id": 340,
            "cityID": "5117",
            "city": "达州市",
            "father": "51"
        },
        {
            "id": 341,
            "cityID": "5118",
            "city": "雅安市",
            "father": "51"
        },
        {
            "id": 342,
            "cityID": "5119",
            "city": "巴中市",
            "father": "51"
        },
        {
            "id": 343,
            "cityID": "5120",
            "city": "资阳市",
            "father": "51"
        }
    ];
var provinceData = [
    {
        "id": 1,
        "provinceID": "11",
        "province": "北京市",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 2,
        "provinceID": "12",
        "province": "天津市",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 3,
        "provinceID": "13",
        "province": "河北省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 4,
        "provinceID": "14",
        "province": "山西省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 5,
        "provinceID": "15",
        "province": "内蒙古自治区",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 6,
        "provinceID": "21",
        "province": "辽宁省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 7,
        "provinceID": "22",
        "province": "吉林省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 8,
        "provinceID": "23",
        "province": "黑龙江省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 9,
        "provinceID": "31",
        "province": "上海市",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 10,
        "provinceID": "32",
        "province": "江苏省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 11,
        "provinceID": "33",
        "province": "浙江省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 12,
        "provinceID": "34",
        "province": "安徽省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 13,
        "provinceID": "35",
        "province": "福建省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 14,
        "provinceID": "36",
        "province": "江西省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 15,
        "provinceID": "37",
        "province": "山东省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 16,
        "provinceID": "41",
        "province": "河南省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 17,
        "provinceID": "42",
        "province": "湖北省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 18,
        "provinceID": "43",
        "province": "湖南省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 19,
        "provinceID": "44",
        "province": "广东省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 20,
        "provinceID": "45",
        "province": "广西壮族自治区",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 21,
        "provinceID": "46",
        "province": "海南省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 22,
        "provinceID": "50",
        "province": "重庆市",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 23,
        "provinceID": "51",
        "province": "四川省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 24,
        "provinceID": "52",
        "province": "贵州省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 25,
        "provinceID": "53",
        "province": "云南省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 26,
        "provinceID": "54",
        "province": "西藏自治区",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 27,
        "provinceID": "61",
        "province": "陕西省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 28,
        "provinceID": "62",
        "province": "甘肃省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 29,
        "provinceID": "63",
        "province": "青海省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 30,
        "provinceID": "64",
        "province": "宁夏回族自治区",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 31,
        "provinceID": "65",
        "province": "新疆维吾尔自治区",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 32,
        "provinceID": "71",
        "province": "台湾省",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 33,
        "provinceID": "81",
        "province": "香港特别行政区",
        "Code": null,
        "IsHot": null
    },
    {
        "id": 34,
        "provinceID": "82",
        "province": "澳门特别行政区",
        "Code": null,
        "IsHot": null
    }
];
/**
 * Cascader组件

 * @class Cascader
 * @extends Complex
 *
 *
 * @param [defaultValue] 默认选择值，json格式
 *  {
 *           provinceValue:'',
 *           provinceIndex:null,
 *           provinceText:'',
 *           cityValue:'',
 *           cityIndex:null,
 *           cityText:''
 *       }
 *
 * @param [provinceSelect] 省份下拉初始值
 * @param [citySelect] 城市下拉初始值
 *
 *
 * 示例:
 *
 *     @example
 *     <Cascader />
 */
var Cascader = React.createClass({
    getDefaultProps:function (){
        return {
            id:"",   //自定义id
            className:"",    //自定义class
            provinceSelect: "请选择",  //下拉框初始值
            citySelect:   "请选择",      //下拉框初始值
            defaultValue:'',  //默认选中项
            name:name                //默认select表单name
        }   
    },
    getInitialState: function(){
        var provinceStr,provinceIndex,provinceText,cityStr,cityIndex,cityText;
        var defaultValue = this.props.defaultValue;
        if(defaultValue){
            if(defaultValue.provinceIndex &&defaultValue.provinceIndex < provinceData.length){
                provinceIndex = defaultValue.provinceIndex;
                provinceStr = provinceData[defaultValue.provinceIndex].provinceID;
                provinceText = provinceData[defaultValue.provinceIndex].province;
            }else {
                provinceData.map(function(item,index){
                    if(defaultValue.provinceValue == item.provinceID) {
                        provinceStr = item.provinceID;
                        provinceIndex = index;
                        provinceText = item.province;
                    }
                })
            }
            if(defaultValue.cityIndex && defaultValue.cityIndex < cityData.length){
                cityIndex = defaultValue.cityIndex;
                cityStr = cityData[defaultValue.cityIndex].cityID;
                cityText = cityData[defaultValue.cityIndex].city;
            }else {
                cityData.map(function(item,index){
                    if(defaultValue.cityValue == item.cityID){
                        cityStr = item.cityID;
                        cityIndex = index;
                        cityText = item.city;
                    }
                })
            }

        }
        return {
            province: [],   //省的下拉项
            city: [],    //市的下拉项
            provinceSelect: provinceStr ? provinceStr : this.props.provinceSelect,  //下拉框初始值
            provinceIndex: provinceIndex ? provinceIndex : '',
            citySelect: cityStr ? cityStr : this.props.citySelect,      //下拉框初始值
            cityIndex: cityIndex ? cityIndex : '',      //下拉框初始index
            jsonValue:{provinceValue:provinceStr,provinceIndex:provinceIndex,provinceText:provinceText,cityValue:cityStr,cityIndex:cityIndex,cityText:cityText},       //选中的json数据
            index:0,            //是否显示下拉框样式
            didSelect1:false   //当前选中样式
        };
    },
    getProvince: function () {
        var self = this;
        var provinceArr = [];
        provinceData && provinceData.map(function (array, index) {
            provinceArr.push({option:array.province,value:array.provinceID});
        })
        self.setState({province:provinceArr})
        // self.refs.province.setOptions(provinceArr)
    },
    getCity:function (value) {
        var self = this;
        var cityArr = [];
        cityData && cityData.map(function (array,index) {
            if(array.father == value){
                cityArr.push({option:array.city,value:array.cityID});
            }
        })
        // self.setState({city:cityArr})
        self.refs.city.setOptions(cityArr);
    },
    /**
     * 省份改变时触发的函数
     * @param {v} 选中项的json
     * */
    provinceChange: function (v) {
        this.state.jsonValue.provinceValue = v.selectValue;
        this.state.jsonValue.provinceIndex= v.selectIndex;
        this.state.jsonValue.provinceText= v.selectText;
        this.state.jsonValue.cityValue ='';
        this.state.jsonValue.cityIndex ='';
        this.state.jsonValue.cityText ='';
        this.setState({
            provinceSelect:this.state.province[v.selectIndex].option
        })
        this.getCity(v.selectValue);
        this.props.provinceChange && this.props.provinceChange(this.state.jsonValue);
    },
    /**
     * 城市改变时触发的函数
     * @param {v}  选中项的json
     * */
    cityChange: function (v) {
        this.state.jsonValue.cityValue = v.selectValue;
        this.state.jsonValue.cityIndex = v.selectIndex;
        this.state.jsonValue.cityText = v.selectText;
        this.props.cityChange && this.props.cityChange(this.state.jsonValue);
    },
    componentDidMount:function () {
      this.getProvince();
      this.getCity(this.state.provinceSelect);
    },
   /**
    * 获取被选的值
    * @return {json}
    * */
    getValue:function(){
        return this.state.jsonValue;
    },
    render: function(){
        return (
            <div className="ucs-cascader">
                <SelectDropDown ref="province" defaultValue={this.state.provinceSelect}  defaultIndex={this.state.provinceIndex} options={this.state.province} onChange={this.provinceChange.bind(this)} />
                <SelectDropDown ref="city" defaultValue={this.state.citySelect}   defaultIndex={this.state.cityIndex} options={[]}  onChange={this.cityChange.bind(this)}/>
            </div>
        )
    }
});

module.exports = Cascader;
